Professional Swift by Michael Dippery
Author:Michael Dippery [Dippery, Michael]
Language: eng
Format: azw3
ISBN: 9781119148715
Publisher: Wiley
Published: 2015-05-08T00:00:00+00:00
Finally, the method closes with three lines of code that dismiss the dialog sheet, so users wonât have to force-quit the application. These three lines of code also reload the table view so new data will appear immediately:
NSApp.endSheet(panel) panel.orderOut(sender) tableView.reloadData()
These lines are identical to what you would find in an Objective-C application, save for being written in Swiftâs, instead of Objective-Câs, syntax.
Hooking Up the Dialog Sheet
Now, you have to hook up the dialog sheetâs OK button to this action. Switch back to MainMenu .xib and Control-drag a connection from the panelâs OK button to the createBirthday() outlet you just created in your AppDelegate class.
Build and run the Birthdays application again. You should now have a fully functional dialog sheet. You can invoke it by selecting New from the File menu and enter a new birthday. This time, clicking OK will actually dismiss the sheet!
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25280)
Hello! Python by Anthony Briggs(24330)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23419)
Kotlin in Action by Dmitry Jemerov(22500)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21953)
Dependency Injection in .NET by Mark Seemann(21835)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20697)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19514)
Grails in Action by Glen Smith Peter Ledbrook(18592)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17028)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15836)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13683)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11846)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11149)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10619)
Hit Refresh by Satya Nadella(9185)
The Kubernetes Operator Framework Book by Michael Dame(8560)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8398)
Robo-Advisor with Python by Aki Ranin(8345)